﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace TravianHelper
{
    class ResourceFieldComparer : IComparer
    {

        int IComparer.Compare(Object x, Object y)
        {
            ResourceField a = (ResourceField)x;
            ResourceField b = (ResourceField)y;
            if (a.level == b.level) return ((new CaseInsensitiveComparer()).Compare(a.level, b.level));
            return ((new CaseInsensitiveComparer()).Compare(a.level, b.level));
        }

    }
}
